package com.liuc.mybatis.service.impl;

import com.liuc.mybatis.mapper.UserMapper;
import com.liuc.mybatis.pojo.User;
import com.liuc.mybatis.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;
    @Override
    public User getUser(User user) {
        return userMapper.selectByPrimaryKey(user.getId());
    }
}
